package apiday07home;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("bbb.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos);
        String line = "全都怪我，不该沉默时沉默";
        osw.write(line);
        System.out.println("输入完毕");
        osw.close();

    }
}
